package com.ninthgroup.controller;

import com.ninthgroup.service.OrderService;
import com.ninthgroup.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：1452863884@qq.com rcg
 * @date ：Created in 2022/10/27 15:38
 * @description：订单的控制层
 * @modified By：
 * @version:1.0
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;


    @GetMapping("/all")
    public Result selectAll(){
        return orderService.SelectAll();
    }

    @GetMapping("/one")
    public Result selectOne(String mIdcard, String mTelephone){
        return orderService.SelectOne(mIdcard,mTelephone);
    }


}